# coding:utf-8
# @Time    : 2021/12/10 8:54
# @Author  : Martin

"""
家乐福特品满减
"""
from page_object.base.page_items_carrefour import PageItemsCarrefour
from util.read_file import get_approve_data


class SpecialReducePage(PageItemsCarrefour):
    _base_url = "/nspas-web-in/processRoleFilter.do?businessTemplateId=NSOA23668&comType=12"

    def input_act_rule(self, param):
        """
        门槛金额
        :param param:
        :return:
        """
        self.input('name', 'orderPlummetRule.privilegeSill', param)

    @staticmethod
    def get_approve_head_create():
        """
        获取总部新建审批流账号数据
        :return:
        """
        return get_approve_data('jlf_tpmj', 'head', 'create')
